package com.ytf.core.common;

public enum ResultParam {
    SUCCESS(200, "success"),
    ERROR(400, "error"),
    ;

    private int code;    // 状态码
    private String msg;  // 提示信息

    ResultParam(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
